package com.jkoss.wine.shopOrder.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import cn.afterturn.easypoi.excel.annotation.Excel;


/**
 * 
 * 
 * @Author Supreme
 * @Version 1.0, 2018-10-08
 * @See
 * @Since com.jkoss.wine.shopOrder.entity
 * @Description: TODO
 */
@TableName("card_recharge")
public class CardRecharge extends Model<CardRecharge> {

    private static final long serialVersionUID = 1L;

    @TableId("card_recharge_id")
    private String cardRechargeId;
    /**
     * 店铺ID
     */
    @TableField("shop_id")
    private String shopId;
    /**
     * 充值金额
     */
    @TableField("recharge_money")
    private Integer rechargeMoney;
    @TableField("order_pay_id")
    private String orderPayId;
    /**
     * 会员卡ID
     */
    @TableField("member_card_id")
    private String memberCardId;
    /**
     * 赠送金额 = 充值金额 - 实收金额
     */
    @TableField("give_money")
    private Integer giveMoney;
    /**
     * 实收金额
     */
    @TableField("real_money")
    private Integer realMoney;
    @Excel(name = "充值时间", orderNum = "8", format = "yyyy-MM-dd", width = 30)
    @TableField("add_time")
    private Date addTime;
    @TableField("operator")
    private String operator;


    public String getCardRechargeId() {
        return cardRechargeId;
    }

    public void setCardRechargeId(String cardRechargeId) {
        this.cardRechargeId = cardRechargeId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Integer getRechargeMoney() {
        return rechargeMoney;
    }

    public void setRechargeMoney(Integer rechargeMoney) {
        this.rechargeMoney = rechargeMoney;
    }

    public String getOrderPayId() {
        return orderPayId;
    }

    public void setOrderPayId(String orderPayId) {
        this.orderPayId = orderPayId;
    }

    public String getMemberCardId() {
        return memberCardId;
    }

    public void setMemberCardId(String memberCardId) {
        this.memberCardId = memberCardId;
    }

    public Integer getGiveMoney() {
        return giveMoney;
    }

    public void setGiveMoney(Integer giveMoney) {
        this.giveMoney = giveMoney;
    }

    public Integer getRealMoney() {
        return realMoney;
    }

    public void setRealMoney(Integer realMoney) {
        this.realMoney = realMoney;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    @Override
    protected Serializable pkVal() {
        return this.cardRechargeId;
    }

    @Override
    public String toString() {
        return "CardRecharge{" +
        ", cardRechargeId=" + cardRechargeId +
        ", shopId=" + shopId +
        ", rechargeMoney=" + rechargeMoney +
        ", orderPayId=" + orderPayId +
        ", memberCardId=" + memberCardId +
        ", giveMoney=" + giveMoney +
        ", realMoney=" + realMoney +
        ", addTime=" + addTime +
        ", operator=" + operator +
        "}";
    }
}
